<?php


namespace app\controller\index;

use app\result\extend\ExtendResult;
use think\App;

class Extend extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new ExtendResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->user_id, $this->param));
    }

    public function get()
    {
        data_exit_json($this->objResult->get($this->param));
    }

    public function save()
    {
        data_exit_json($this->objResult->save($this->user_id, $this->param));
    }

    public function delete()
    {
        data_exit_json($this->objResult->delete($this->user_id, $this->param));
    }

    public function my_list()
    {
        data_exit_json($this->objResult->my_list($this->user_id, $this->param));
    }
}
